package com.ranjiaqi.file;

import java.io.File;

/**
 * @ClassName FileRoot
 * @Description TODO
 * @Author hp
 * @Date 2021/7/1 9:59
 * @Version 1.0
 **/
public class FileRoot {
    public static void main(String[] args) {
        File[] file = File.listRoots();
        for (File file1 : file) {
            System.out.println(file1);
        }
    }
}
